﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RSS_Downloader
{
    struct MediaFile
    {
        private long length;
        private Uri uri;
        private string source;

        public long Length
        {
            get { return length; }
        }
        public Uri Uri
        {
            get { return uri; }
        }
        public string Source
        {
            get { return source; }
        }


        public MediaFile(string source, Uri uri, long size)
        {
            this.uri = uri;
            this.length = size;
            this.source = source;
        }

        public override string ToString()
        {
            return Uri.AbsoluteUri + " (" + Length.ToHumanString() + ")";
        }
    }
}
